﻿@{
    ViewBag.Title = "用户列表";
    Layout = "~/Views/Shared/Dwz/_DwzTableLayout.cshtml";
}
@section topbutton{}
<table class="table" width="100%" layoutH="103" >
<thead>
    <tr>
        <th width="40" class="asc">
            ID
        </th>
        <th width="80">
            账号
        </th>
        <th width="40">
            类型
        </th>
        <th width="100">
            创建时间
        </th>
        <th width="100">
            最后一次登录
        </th>
    </tr>
</thead>
<tbody>
    @foreach (MembershipUser item in Membership.GetAllUsers())
    {
        <tr target="sid_user" rel="@item.ProviderUserKey">
            <td>
                @item.ProviderUserKey;
            </td>
            <td>
                @item.UserName
            </td>
            <td>
                @Roles.GetRolesForUser(item.UserName).FirstOrDefault()
            </td>
            <td>
                @item.CreationDate
            </td>
            <td>
                @item.LastLoginDate
            </td>
            
        </tr>
    }
</tbody>
</table>